
// 自动生成模板LsSeckill
package shop
import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
	"time"
)

// 秒杀表 结构体  LsSeckill
type LsSeckill struct {
    global.GVA_MODEL
  ShopId  *int32 `json:"shopId" form:"shopId" gorm:"comment:商品Id;column:shop_id;" binding:"required"`  //商品Id
  SeckillPrice  *float64 `json:"seckillPrice" form:"seckillPrice" gorm:"comment:秒杀价;column:seckill_price;size:10;" binding:"required"`  //秒杀价
  SeckillStock  *string `json:"seckillStock" form:"seckillStock" gorm:"comment:秒杀库存;column:seckill_stock;size:255;" binding:"required"`  //秒杀库存
  StartTime  *time.Time `json:"startTime" form:"startTime" gorm:"comment:活动开始时间;column:start_time;" binding:"required"`  //活动开始时间
  EndTime  *time.Time `json:"endTime" form:"endTime" gorm:"comment:活动结束时间;column:end_time;" binding:"required"`  //活动结束时间
  SeckillStatus  *string `json:"seckillStatus" form:"seckillStatus" gorm:"comment:秒杀活动状态(字典）;column:seckill_status;size:255;" binding:"required"`  //秒杀活动状态(字典）
    CreatedBy  uint   `gorm:"column:created_by;comment:创建者"`
    UpdatedBy  uint   `gorm:"column:updated_by;comment:更新者"`
    DeletedBy  uint   `gorm:"column:deleted_by;comment:删除者"`
}


// TableName 秒杀表 LsSeckill自定义表名 ls_seckill
func (LsSeckill) TableName() string {
    return "ls_seckill"
}





